package com.zhongyu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongyu.pojo.Order;
import com.zhongyu.pojo.OrderDetail;
import com.zhongyu.vo.ResultVo;

import java.util.List;


public interface OrderDetailService  extends IService<OrderDetail> {


    List<OrderDetail> findById(Integer orderId);//根据订单id 查订单详情
    List<OrderDetail>findBydetailId1(Integer detailId);//根据订单详情id 查订单明细
    OrderDetail findBydetailId(Integer detailId);//根据订单详情id 查订单明细
    void xsadd(Order order);  //添加销售订单详情
    void add(OrderDetail order);
    ResultVo doOutStore(Integer userId, Integer detailId, Integer cangkuId);//销售出库
    ResultVo doStore(Integer userId, Integer detailId, Integer cangkuId);//采购出库
   // void del(Integer id);
     void update(OrderDetail order);


}
